import React, {FC, useEffect} from 'react';
import {Link} from "react-router-dom";
import {RouteCompProps} from "central-react-router";

interface MyHomeProps extends RouteCompProps{
}

const MyHome: FC<MyHomeProps> = (props) => {

    useEffect(() => {
        console.log('MyHome 组件挂载完毕!');
    }, []);

    console.log('MyHome 组件render!');
    return (
        <div>
            <div>MyHome 组件</div>
            <Link to={'/home'}>Go Home</Link>
        </div>
    );
};

export default MyHome;
